public class GetKthFromEnd {
    /**
     *
     * @param head
     * @param k
     * @return
     */
    public ListNode getKthFromEnd(ListNode head, int k) {
        ListNode dump = head;
        ListNode next =  dump;
        for(int i=1;i<=k;i++){
            next = next.next;
        }
        while (next!=null){
            next = next.next;
            dump = dump.next;
        }

        return dump;

    }
}
